package domian;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * 收藏对象类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Collect {
    private Integer id; //收藏id
    private Integer uid; //用户id
    private Integer fid; //文件id
    private Date time; //收藏时间
    private String fname; //文件名字
    private String uname; //作者名字
    private Integer integral; //积分
    private String title; //一级目录
    private String titles; //二级目录

    public Collect(Integer fid,String fname, Integer integral, String title, String titles) {
        this.fid=fid;
        this.fname = fname;
        this.integral = integral;
        this.title = title;
        this.titles = titles;
    }

    public Collect(Integer uid, Integer fid, Date time) {
        this.uid = uid;
        this.fid = fid;
        this.time = time;
    }

    public Collect(Integer fid) {
        this.fid = fid;
    }



    public Collect(Integer fid, Date time, String fname, String uname, Integer integral) {
        this.fid = fid;
        this.time = time;
        this.fname = fname;
        this.uname = uname;
        this.integral = integral;
    }

}
